package com.example.design_pattern.singleton;//package com.com.sxs.design_pattern.singleton;

public class SingletonTest {
    public static void main(String[] args) {
        Singleton2 singletonA=Singleton2.getInstance();
        Singleton2 singletonB=Singleton2.getInstance();
//        singletonA.dosomething();
        System.out.println(singletonA);
        System.out.println(singletonB);
    }

}
